package com.zrsx.searchmodel.mapper;

import com.zrsx.searchmodel.common.vo.RankVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CreditScoreMapper {
    @Select("SELECT score FROM credit_score WHERE user_id = #{userId}")
    Integer getCreditById(Integer userId);

    @Select("SELECT user_id, score FROM credit_score")
    List<RankVO> getAllUserCredits();
}
